﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace Bot.Domain
{
    public class ExceptionWithCode : Exception
    {
        public int ErrorCode { get; private set; }
        public HttpStatusCode StatusCode { get; private set; }
        public ExceptionWithCode(int errorCode, string message, HttpStatusCode statusCode = HttpStatusCode.BadRequest)
        {
            ErrorCode = ErrorCode;
            StatusCode = statusCode;
        }
    }
}
